package com.coderlyz.demo;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
public @interface MyTestAnnotation {
    //定义了两个成员变量
    String username() default "江夏";;
    int age() default 20;
}
